]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
magnifier: Apply color inversion to crosshairs/pointer
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 6 Feb 2020 09:33:27 +0000 (10:33 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 7 Feb 2020 17:18:25 +0000 (18:18 +0100)
It is somewhat unexpected that crosshair color and pointer cursor colors
remain the same across changes in color inversion settings, and may lead
to contrast issues. Apply the effect on the common container, so it
applies to these all.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/984

js/ui/magnifier.js

index af6c2567d665fd31f87e5ec790404afe7196f9ec..8d2bf34a617d28b338e30490be98460fc68292a2 100644 (file)
@@ -1324,7 +1324,7 @@ var ZoomRegion = class ZoomRegion {
             this._crossHairsActor = null;
 
         // Contrast and brightness effects.
-        this._magShaderEffects = new MagShaderEffects(this._uiGroupClone);
+        this._magShaderEffects = new MagShaderEffects(mainGroup);
         this._magShaderEffects.setColorSaturation(this._colorSaturation);
         this._magShaderEffects.setInvertLightness(this._invertLightness);
         this._magShaderEffects.setBrightness(this._brightness);